package com.ktgj.flight.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.flight.mapper.FlightOrderChangeTicketsHMapper;
import com.ktgj.flight.domain.FlightOrderChangeTicketsH;
import com.ktgj.flight.service.IFlightOrderChangeTicketsHService;

/**
 * 机票预订_机票退改签订单机票历史Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-26
 */
@Service
public class FlightOrderChangeTicketsHServiceImpl implements IFlightOrderChangeTicketsHService 
{
    @Autowired
    private FlightOrderChangeTicketsHMapper flightOrderChangeTicketsHMapper;

    /**
     * 查询机票预订_机票退改签订单机票历史
     * 
     * @param changeTicketIdH 机票预订_机票退改签订单机票历史ID
     * @return 机票预订_机票退改签订单机票历史
     */
    @Override
    public FlightOrderChangeTicketsH selectFlightOrderChangeTicketsHById(Long changeTicketIdH)
    {
        return flightOrderChangeTicketsHMapper.selectFlightOrderChangeTicketsHById(changeTicketIdH);
    }

    /**
     * 查询机票预订_机票退改签订单机票历史列表
     * 
     * @param flightOrderChangeTicketsH 机票预订_机票退改签订单机票历史
     * @return 机票预订_机票退改签订单机票历史
     */
    @Override
    public List<FlightOrderChangeTicketsH> selectFlightOrderChangeTicketsHList(FlightOrderChangeTicketsH flightOrderChangeTicketsH)
    {
        return flightOrderChangeTicketsHMapper.selectFlightOrderChangeTicketsHList(flightOrderChangeTicketsH);
    }

    /**
     * 新增机票预订_机票退改签订单机票历史
     * 
     * @param flightOrderChangeTicketsH 机票预订_机票退改签订单机票历史
     * @return 结果
     */
    @Override
    public int insertFlightOrderChangeTicketsH(FlightOrderChangeTicketsH flightOrderChangeTicketsH)
    {
        return flightOrderChangeTicketsHMapper.insertFlightOrderChangeTicketsH(flightOrderChangeTicketsH);
    }

    /**
     * 修改机票预订_机票退改签订单机票历史
     * 
     * @param flightOrderChangeTicketsH 机票预订_机票退改签订单机票历史
     * @return 结果
     */
    @Override
    public int updateFlightOrderChangeTicketsH(FlightOrderChangeTicketsH flightOrderChangeTicketsH)
    {
        return flightOrderChangeTicketsHMapper.updateFlightOrderChangeTicketsH(flightOrderChangeTicketsH);
    }

    /**
     * 批量删除机票预订_机票退改签订单机票历史
     * 
     * @param changeTicketIdHs 需要删除的机票预订_机票退改签订单机票历史ID
     * @return 结果
     */
    @Override
    public int deleteFlightOrderChangeTicketsHByIds(Long[] changeTicketIdHs)
    {
        return flightOrderChangeTicketsHMapper.deleteFlightOrderChangeTicketsHByIds(changeTicketIdHs);
    }

    /**
     * 删除机票预订_机票退改签订单机票历史信息
     * 
     * @param changeTicketIdH 机票预订_机票退改签订单机票历史ID
     * @return 结果
     */
    @Override
    public int deleteFlightOrderChangeTicketsHById(Long changeTicketIdH)
    {
        return flightOrderChangeTicketsHMapper.deleteFlightOrderChangeTicketsHById(changeTicketIdH);
    }
}
